﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CHPM.Entities;

namespace CHPM.SL.TheService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMainService" in both code and config file together.
    [ServiceContract]
    public interface IMainService
    {
        [OperationContract]
        [FaultContract(typeof(Exception))]
        PATIENT GetPatientById(int id);

        [OperationContract]
        [FaultContract(typeof(Exception))]
        PATIENT InsertPatient(PATIENT newPatient);

        [OperationContract]
        [FaultContract(typeof(Exception))]
        List<PATIENT> GetAllPatients();

        [OperationContract]
        [FaultContract(typeof (Exception))]
        PATIENT UpdatePatient(PATIENT newPatient);

    }
}
